package com.niguang.labour.admin.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.niguang.labour.admin.TeamListVo;
import com.niguang.labour.admin.entity.WorkTeamUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE Mapper 接口
 * </p>
 *
 * @author
 * @since 2018-06-10
 */
public interface WorkTeamUserMapper extends BaseMapper<WorkTeamUser> {


    List<TeamListVo> getTeamList(Page<TeamListVo> page,@Param("siteId") Long siteId,@Param("userId")  Long userId);

    List<Map<String, Object>> getTeamSetUser(@Param("siteId") String siteId, @Param("userId") Long userId);


    List<Map<String, Object>> getTeamListUser(Page<Map<String, Object>> page, @Param("teamId") String teamId);

}